package com.yuanian.ecsplus.enums;

import com.yuanian.ecsplus.threadlocal.ThreadLocalMap;

/**
 * sql查询的模式,在所有SQL执行前设置一次
 */
public enum QueryMode {

    HUMP("驼峰模式"), UNDERLINE("下划线模式");

    private String desc;

    QueryMode(String desc) {
        this.desc = desc;
    }

    public static void setMode(QueryMode queryMode) {
        ThreadLocalMap.put("queryMode", queryMode);
    }

}
